<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<script>
    const user = {
        name: '佐助',
        age: 20,
        wife: {
            name: '小樱',
            age: 19
        }
    }
    const userProxy = new Proxy(user, {
        get(target, p, receiver) {
            return Reflect.get(target, p, receiver)
        },
        set(target, p, value, receiver) {
            return Reflect.set(target, p, value, receiver)
        },
        deleteProperty(target, p) {
            return Reflect.deleteProperty(target, p)
        }
    })

    userProxy.age = 0

    console.log(userProxy)
</script>
</body>
</html>
